package com.ruoyi.jiekou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiekou.mapper.InterPriceMapper;
import com.ruoyi.jiekou.domain.InterPrice;
import com.ruoyi.jiekou.service.IInterPriceService;

/**
 * 商户接口价格Service业务层处理
 *
 * @author zt
 * @date 2023-11-29
 */
@Service
public class InterPriceServiceImpl implements IInterPriceService
{
    @Autowired
    private InterPriceMapper interPriceMapper;

    /**
     * 查询商户接口价格列表
     *
     * @param interPrice 商户接口价格
     * @return 商户接口价格
     */
    @Override
    public List<InterPrice> selectInterPriceList(InterPrice interPrice)
    {
        return interPriceMapper.selectInterPriceList(interPrice);
    }

    /**
     * 新增商户接口价格
     *
     * @param interPrice 商户接口价格
     * @return 结果
     */
    @Override
    public int insertInterPrice(InterPrice interPrice)
    {
        return interPriceMapper.insertInterPrice(interPrice);
    }

    /**
     * 修改商户接口价格
     *
     * @param interPrice 商户接口价格
     * @return 结果
     */
    @Override
    public int updateInterPrice(InterPrice interPrice)
    {
        return interPriceMapper.updateInterPrice(interPrice);
    }


    public List<InterPrice> selectInterPriceByjfCodes(List<String> jfCodes, Long userId) {

        return interPriceMapper.selectInterPriceByIds(jfCodes, userId);
    }

}
